package com.twu.biblioteca;

/**
 * Created by kathy on 13/04/14.
 */
public enum MenuOptions {

    LIST_BOOKS(1, "1 - List Books"),
    CHECKOUT_BOOKS(2, "2 - Checkout"),
    RETURN_BOOKS(3, "3 - Return"),
    LIST_MOVIES(4, "4 - List Movies"),
    CHECKOUT_MOVIE(5, "5 - Checkout Movie"),
    USER_LOGIN(6, "6 - User Login"),
    USER_INFO(7, "7 - User Information"),
    QUIT (8, "8 - Quit");

    private int code;
    private String message;

    private MenuOptions(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode(){
        return code;
    }

    public void printOption(){
        System.out.println(message);
    }
}
